package com.walle.gatewayserver.vo;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Data
public class TokenInfo implements Serializable {

    private static final long serialVersionUID = -8264002009586558158L;

    // tokenID
    private String tokenId;


    // 用户信息
    private UserInfo user;


    // 系统区分
    private String sysType;

    // 有效期
    private int validTime;


    public TokenInfo() {
    }

    public TokenInfo(String tokenId , UserInfo user, String sysType, int expireTime) {
        this.tokenId = tokenId;
        this.user = user;
        this.sysType = sysType;
        this.validTime = expireTime;
    }
}